package com.shop.car.feign;

import com.shop.common.core.domain.Result;
import com.shop.product.domain.PmsSkuInfo;
import com.shop.product.domain.PmsSkuSaleAttrValue;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Author：作者姓名
 * @Package：com.shop.car.feign
 * @Project：Shop
 * @name：productRrmote
 * @Date：2024/6/23 9:18
 */
@FeignClient(name = "shop-product",url = "localhost:9204")
public interface ProductRemote {
    @GetMapping("/skuinfo/getSkuInfo/{skuId}")
    public Result<PmsSkuInfo> getSkuInfo(@PathVariable("skuId") Long skuId);

    @GetMapping("/saleattrvalue/getSkuSaleAttr/{skuId}")
    public Result<List<PmsSkuSaleAttrValue>> getSkuSaleAttr(@PathVariable("skuId") Long skuId);
}
